import React from 'react'

import SearchHeader from '../../components/searchHeader'
import SearchList from './subpage/List.jsx'

// import './style.scss'

class Search extends React.Component{
    constructor(props, context){
        super(props, context)
    }
    render() {
        const params = this.props.match.params
        return (
            <div>
                <SearchHeader history={this.props.history} value={params.key}></SearchHeader>
                <SearchList key={params.key} type={params.type}></SearchList>
            </div>
        )
    }
    componentDidMount() {
    }
}

export default Search